extends "../cTDZ_1/cTDZ_1.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "软泥怪"
	lv = 2
	attCoe.atk = 15 / 8.5 * 2 / 2
	attCoe.maxHp = 980 / 112.5 / 2
	attCoe.def = 65 / 15.0 / 2
	attCoe.mgiDef = 65 / 16.6 / 2 
	addSkillTxt("软泥反弹：受到暴击普攻时，33%概率使伤害固定为1点，并反弹应受伤害50%")
var pw1 = 33
func _onHurt(atkinfo):
	if !atkinfo.isMiss && atkinfo.isCri && atkinfo.atkType == Chara.AtkType.NORMAL:
		if sys.rndPer(pw1):
			hurtChara(atkinfo.atkCha,atkinfo.hurtVal * 0.5,atkinfo.hurtType,Chara.AtkType.EFF)
		atkinfo.hurtVal = 0
		plusHp(-1)
	._onHurt(atkinfo)